Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend refactor #1532

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

Backend refactor #1532

wants to merge 14 commits into from

Conversation

BrunoLiegiBastonLiegi
Copy link
Contributor

This is more of a proof-of-concept PR.
It tries to address #1474 by defining a set of core operations a backend should implement to be qibo compliant. Notably, the usual backend.np pattern is removed here. As a consequence, many of the methods from the NumpyBackend are moved to the AbstractBackend as they are completely general and backend agnostic once the core operations are defined.
Actually, it might even be a good idea to move some of them from the backend to some more suitable place. For instance, several methods that implement operations on quantum states might be moved directly to the qibo.result.QuantumState object, similarly for Hamiltonians and others.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant